package com.Studen.servlet;

import com.Studen.Dao.StudentDao;
import com.Studen.Dao.StudentDaoMpl;
import com.Studen.bean.Score;
import com.Studen.bean.User;
import com.Studen.util.IsEmpty;

import java.util.List;

public class StudentServletMpl implements StudentServlet {
    @Override
    public List<Score> StudentLogin(User user) {
        StudentDao d=new StudentDaoMpl();
        List<Score> list=d.StudentLogin(user);
        if (new IsEmpty().isEmpty(user.getU_name())){
            return null;
        }
        if (new IsEmpty().isEmpty(user.getU_pwd())){
            return null;
        }
        return list;
    }
}
